package com.study.app.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.study.app.mapper.InfoMapper;
import com.study.app.entity.Info;
import com.study.app.service.IInfoService;


@Service
public class InfoServiceImpl implements IInfoService 
{
    @Autowired(required=false)
    private InfoMapper infoMapper;

    //查询评分细则

    @Override
    public Info selectInfoById(Long id)
    {
        return infoMapper.selectInfoById(id);
    }

    //查询评分细则列表

    @Override
    public List<Info> selectInfoList(Info info)
    {
        return infoMapper.selectInfoList(info);
    }

    //新增评分细则

    @Override
    public int insertInfo(Info info)
    {
        return infoMapper.insertInfo(info);
    }

    //修改评分细则

    @Override
    public int updateInfo(Info info)
    {
        return infoMapper.updateInfo(info);
    }

    //批量删除评分细则

    @Override
    public int deleteInfoByIds(Long[] ids)
    {
        return infoMapper.deleteInfoByIds(ids);
    }

    //删除评分细则信息

    @Override
    public int deleteInfoById(Long id)
    {
        return infoMapper.deleteInfoById(id);
    }
}
